import request from '@/utils/request'

// 查询检测指标集合
export function listDetection(query) {
  return request({
    url: '/system/detection/list',
    method: 'get',
    params: query
  })
}

// 获取检测指标详细信息 /dev-api/system/detection/{detectionId}
export function getDetection(detectionId) {
  return request({
    url: '/system/detection/' + detectionId,
    method: 'get'
  })
}

// 新增检测指标 /dev-api/system/detection 新增检测指标
export function addDetection(data) {
  return request({
    url: '/system/detection',
    method: 'post',
    data: data
  })
}

//修改检测指标 /dev-api/system/detection
export function updateDetection(data) {
  return request({
    url: '/system/detection',
    method: 'put',
    data: data
  })
}

// 删除检测指标 /dev-api/system/detection/{detectionIds}
export function delDetection(detectionIds) {
  return request({
    url: '/system/detection/' + detectionIds,
    method: 'delete'
  })
}